//
//  ADWebViewModel.h
//  ADKit
//
//  Created by 杜 泽旭 on 2017/12/3.
//  Copyright © 2017年 duzexu. All rights reserved.
//

#import "ADViewModel.h"
#import <WebKit/WebKit.h>

@interface ADWebViewModel : ADViewModel<WKUIDelegate,WKNavigationDelegate,WKScriptMessageHandler>

/// webView
@property (nonatomic, weak, readonly) WKWebView *webView;

/// web url quest
@property (nonatomic, readwrite, copy) NSURLRequest *request;

/// `webView` 的位置缩进，default is UIEdgeInsetsMake(0,0,0,0)，you can override it
@property (nonatomic, readwrite, assign) UIEdgeInsets webViewViewInset;

/// 下拉刷新 defalut is NO
@property (nonatomic, readwrite, assign) BOOL shouldPullDownToRefresh;
/// refreshHeader's class, defalut is MJRefreshNormalHeader
@property (nonatomic, readwrite, assign) Class refreshHeaderClass;

/// 是否取消导航栏的title等于webView的title,默认是不取消
@property (nonatomic, readwrite, assign) BOOL shouldDisableWebViewTitle;

/// 是否取消关闭按钮。默认是不取消
@property (nonatomic, readwrite, assign) BOOL shouldDisableWebViewClose;

@end
